package com.vhall.component.entity.vote;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 房间投票关联表
 * </p>
 *
 * @author longzhen.gong
 * @since 2021-07-06
 */
@Data
@EqualsAndHashCode()
@Accessors(chain = true)
@TableName("room_vote_lk")
public class RoomVoteLkEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 投票id
     */
    @TableField("vote_id")
    private Long voteId;

    /**
     * 房间id
     */
    @TableField("room_id")
    private String roomId;

    /**
     * 用户ID
     */
    @TableField("account_id")
    private Integer accountId;

    /**
     * 结束时间
     */
    @TableField("finish_time")
    private LocalDateTime finishTime;

    /**
     * 是否发布，1是0否
     */
    @TableField("publish")
    private Integer publish;

    /**
     * 是否绑定，1是0否
     */
    @TableField("bind")
    private Integer bind;

    /**
     * 是否发布评分 0-未发布 1-发布
     */
    @TableField("is_release")
    private Integer isRelease;

    /**
     * 投票是否结束 0-未结束 1-已结束
     */
    @TableField("is_finish")
    private Integer isFinish;

    /**
     * 扩展业务字段
     */
    @TableField("extend")
    private String extend;

    @TableField("created_at")
    private LocalDateTime createdAt;

    @TableField("updated_at")
    private LocalDateTime updatedAt;

    @TableField("deleted_at")
    private LocalDateTime deletedAt;


}
